﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BonsaiScrum.Mvc.Models.CreateUserModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	CreateUser
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>CreateUser</h2>
    <p>
    To register here, please enter all information:
    </p>
    <% using (Html.BeginForm()) { %>
     <%= Html.ValidationSummary(true, "Create user failed. Please correct the errors and try again.") %>
      <fieldset>
        <legend>Personalia:</legend>
            <div class="editor-label">
            <%= Html.LabelFor(m => m.UserName) %> 
            </div>
            <div class="editor-field">
            <%= Html.TextBoxFor(m => m.UserName ) %>
            <%= Html.ValidationMessageFor(m => m.UserName) %>
            </div>
            
            <div class="editor-label">
            <%= Html.LabelFor(m => m.Password ) %> 
            </div>
            <div class="editor-field">
            <%= Html.PasswordFor(m => m.Password  ) %>
            <%= Html.ValidationMessageFor(m => m.Password ) %>
            </div>
            
            <div class="editor-label">
            <%= Html.LabelFor(m => m.ConfirmPassword ) %> 
            </div>
            <div class="editor-field">
            <%= Html.PasswordFor(m => m.ConfirmPassword  ) %>
            <%= Html.ValidationMessageFor(m => m.ConfirmPassword ) %>
            </div>
            
            <div class="editor-label">
            <%= Html.LabelFor(m => m.FirstName ) %> 
            </div>
            <div class="editor-field">
            <%= Html.TextBoxFor(m => m.FirstName)%>
            <%= Html.ValidationMessageFor(m => m.FirstName)%>
            </div>
            
            <div class="editor-label">
            <%= Html.LabelFor(m => m.LastName)%> 
            </div>
            <div class="editor-field">
            <%= Html.TextBoxFor(m => m.LastName)%>
            <%= Html.ValidationMessageFor(m => m.LastName)%>
            </div>
            
            <div class="editor-label">
            <%= Html.LabelFor(m => m.PermissionLevel)%> 
            </div>
            <div class="editor-field">
            <%= Html.DropDownListFor(m => m.PermissionLevel, Model.PermissionLevels)%>
            <%= Html.ValidationMessageFor(m => m.PermissionLevel)%>
            </div>
            <p>
                <input type="submit" value="Create User" />
            </p>
      </fieldset>
  
        
    <% } %>
</asp:Content>
